m = int(input())
n = int(input())
print(f"{m:0{n}b}")